package com.silverbox.shopper.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.ReserveBasicInfo;

public interface ReserveBasicInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ReserveBasicInfo record);

    int insertSelective(ReserveBasicInfo record);

    ReserveBasicInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ReserveBasicInfo record);

    int updateByPrimaryKey(ReserveBasicInfo record);
    
    /**
   	 * 获取预约取餐信息
   	 * @param shopperId
   	 * @param storeId
   	 * 
   	 */
	List<ReserveBasicInfo> getReserveBasicInfo(@Param("shopperId")Integer shopperId, @Param("storeId")Integer storeId);
	
	List<String> getReserveStageListByStoreId(@Param("shopperId")Integer shopperId, @Param("storeId")Integer storeId);
	
	/**
	 * 根据预约时间获取预约取餐信息
	 * @param shopperId
	 * @param storeId
	 * @param reserveTime
	 * @return
	 */
	ReserveBasicInfo getReserveBasicInfoByTime(@Param("shopperId")Integer shopperId, @Param("storeId")Integer storeId, @Param("reserveTime")String reserveTime);
}